<#macro form_select 
	list 
	l=""  label=""
	listKey="" listValue=""
	value="" headerKey="" headerValue=""
	id="" name="" style=""
	r=false		required=false <!-- required 定义为必填字段 -->
	p=""		placeholder="" <!-- 在输入框显示提示消息 -->
	onchange=""
	formGroupDivId=""
	>
<div class="form-group" <#if formGroupDivId != ""> id="${formGroupDivId}" </#if>>
	<label class="col-sm-3 control-label no-padding-right" <#if id != ""> for="${id}" </#if>> ${l!}${label!} </label>
	<div class="col-sm-9">
	<select class="select2" 
		<#if id != ""> id="${id}"</#if>
		<#if name != ""> name="${name}"</#if> 
		<#if placeholder != "" || p!="">  data-placeholder="${placeholder!}${p!}" </#if> 
		<#if required || r> required </#if>
		<#if onchange != ""> onchange="${onchange}"</#if> 
		>
		<#if headerKey!="" || headerValue!="">
			<option value="${headerKey}">${headerValue}</option>
		</#if>
		<#if list?is_sequence>
			<#if listKey!="" && listValue!="">
				<#list list as item>
					<option value="${item[listKey]}"<#if item[listKey]?string==value?string> selected="selected"</#if>>${item[listValue]!}</option><#t/>
				</#list>
			<#else>
				<#list list as item>
					<option value="${item}"<#if item==value> selected="selected"</#if>>${item}</option><#t/>
				</#list>
			</#if>
		<#else>
			<#list list?keys as key>
				<option value="${key}"<#if key==value?string> selected="selected"</#if>>${list[key]}</option><#t/>
			</#list>
		</#if>
	</select>
	</div>
</div>
</#macro>